﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using WINBASE.Controls;
using System.Drawing;
using System.Data;

namespace WINBASE
{
    public partial class WLCDetailForm : WLCForm
    {
        #region Constructor & Load

        public WLCDetailForm()
        {
            InitializeBaseData();
        }

        public WLCDetailForm(IContainer container)
        {
            container.Add(this);
            InitializeBaseData();
        } 

        #endregion

        #region Event

        private void WLCForm_Leave(object sender, EventArgs e)
        {
            ApplicationObject.ActiveForm = null;
        }

        private void WLCForm_Enter(object sender, EventArgs e)
        {
            ApplicationObject.ActiveForm = this;
        } 

        #endregion

        #region Method

        public virtual void InitializeData(DataRowView dr) { }

        public virtual bool DeleteData(DataRowView dr) { return true; }

        #endregion

    }
}